package wlpc;

import java.io.IOException;
import java.io.OutputStream;
import java.net.Socket;

public class client {
    //与server是一起的
    public static void main(String[] args) throws IOException {

        Socket socket = new Socket("127.0.0.1", 10000);

        OutputStream os = socket.getOutputStream();
        os.write("hahaha".getBytes());

        socket.shutdownOutput();
        socket.close();
    }
}
